﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>两个checkbox互斥问题</title>
    <script language="javascript">
        function sel1(obj){
            if(obj.checked){
                document.all.chk2.checked=false;
                document.all.sel1.selectedIndex = 4;
            }
        }
        
        function sel2(obj){
            if(obj.checked){
                document.all.chk1.checked=false;
                document.all.sel1.selectedIndex = 0;
            }
        }
    </script>
</head>
<body>
<p>A组
    <input type="checkbox" name="checkbox" value="checkbox" id="chk1" onClick="sel1(this)">
</p>
<p>B组
    <input type="checkbox" name="checkbox2" value="checkbox" id="chk2" onClick="sel2(this)">
</p>
<p>C
    <select name="select" id="sel1">
        <option selected="selected">个人</option>
        <option>200米</option>
        <option>400米</option>
        <option>800米</option>
        <option>200米接力</option>
    </select>
</p>
</body>
</html>